<?php
require_once("checklogin.php");
require_once("classQuanTriTin.php");
$qt = new quantritin;
//Xóa 1 lao5i tin
if (isset($_GET['idTin'])==true){
	$idTin = $_GET['idTin']; 
	$qt->XoaTin($idTin);
	header("location:tintuc_xemds.php");
}

//Xóa nhiều lao5i tin
if (isset($_GET['listid'])==true){
$listid = explode(",",$_GET['listid']); 
for ($i=0 ; $i<count($listid) ; $i++){
	$idTin = $listid[$i]; 	
	$qt->XoaTin($idTin);
}
header("location:tintuc_xemds.php");
}

?>